package com.jobsika.client.rpc;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.jobsika.domain.RPCPost;
import com.jobsika.domain.RPCUser;

/**
 * The client side stub for the RPC service.
 */
@RemoteServiceRelativePath("user")
public interface UserService extends RemoteService {
	public RPCUser		login(String requestUri);
	public RPCUser		register(RPCUser user);
	public RPCUser[]	getUsers(int page, int limit);
	public RPCPost[]	getPosts(int page, int limit);
	public RPCPost[]	search(int page, int limit, String key);
	public RPCPost		getPost(String key);
	public RPCUser		getUser(String email);
	public Integer		initialize();
}
